﻿@using Mulala.Cavan.Presentation.Seedwork
@using Mulala.Cavan.Presentation.Mvc.Controller
@model ICorporationsViewModel
@{
    ViewBag.Title = "公司列表";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header{
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/themes/main/jzgs")
}
<div class="nav">
    <div class="nav_left">
        <div class="nav_text">
            <p>
                你的位置：<a href="#">首页></a>&nbsp;<a href="#">家政公司</a></p>
            @{
                Html.RenderAction(ActionConst.CORPORATIONTAGS, "Tag"); @*搜索*@
            }
        </div>
        <div class="nav_search">
            <ul>
                <li><a href="#"><b>家政公司</b></a></li>
                <li class="nav_input">
                    <input type="text" value="请输入关键字" id="Text" onfocus="OnFocusFun(this,'请输入关键字')" style="color: #999"
                        onblur="OnBlurFun(this,'请输入关键字')" /><font><input class="submit_jz" type="submit"
                            value="找家政公司" /></font></li>
            </ul>
        </div>
        <div class="nav_list">
            <ul>
                <li>共有<span><a href="#">@Model.CorporationTotal.ToString()</a></span>家符合要求的家政公司</li>
                <li class="select_list">排序：
                    <select>
                        <option value="#">默认排序</option>
                        <option value="#">热门排序</option>
                        <option value="#">时间排序</option>
                    </select>
                </li>
                <li class="fuwu"><a href="#">擅长服务</a></li>
            </ul>
        </div>
        <div class="nav_jz">
            @{
                var logo = string.Empty;
                string sendNoteID = string.Empty;  
            }
            @foreach (var corporation in Model.Corporations)
            {
                logo = corporation.Logo + "_100@100.jpg";
                sendNoteID = "sendNote" + corporation.Item.ID.ToString();
                <div class="list_jz">
                    <div class="list_top">
                        <div class="img_text">
                            <div class="list_img">
                                <a href="@corporation.DetailUrl">
                                    <img src="@logo" alt="家政公司" /></a>
                            </div>
                            <div class="list_text">
                                <ul>
                                    <li>@Html.ActionLink(corporation.Item.FullName, ActionConst.DETAIL, ControllerConst.CORPORATION, new { id = corporation.Item.ID })</li>
                                    <li>经验等级：<img src="@corporation.ExperienceIcon" alt="星星" /></li>
                                    <li>区域：@corporation.Item.Area.Name&nbsp;&nbsp;&nbsp;经验年限：@corporation.BusinessExperience</li>
                                    <li>类型：@corporation.Type&nbsp;&nbsp;&nbsp;家政团队：@corporation.Scale</li>
                                </ul>
                            </div>
                        </div>
                        <div class="jz_fuwu">
                            <ul>
                                <li>@corporation.Speciality</li>
                            </ul>
                        </div>
                    </div>
                    <div class="list_bottom">
                        <ul>
                            <li><span>@corporation.Item.Address&nbsp;&nbsp;&nbsp;&nbsp;联系电话：@corporation.Item.Telephone</span></li>
                            <li class="button_li">
                                <input type="button" value="发站内信" id="@sendNoteID" name="sendNote"/>&nbsp;&nbsp;&nbsp;
                                <button>
                                    请求合约</button></li>
                        </ul>
                    </div>
                </div>
            }
        </div>
        <div class="no_list">
            @Html.Pager(@Model.SearchParam, new PagerOptions { PageIndexParameterName = "cp" }, "DefaultList", null)
        </div>
    </div>
    <div class="nav_right">
        <div class="jinpai">
            <h1>
                金牌家政公司</h1>
            @{
                Html.RenderAction(ActionConst.GREATECORPORATION, ControllerConst.CORPORATION);@*金牌家政公司*@
            }
        </div>
        <div class="paihang">
            <h1>
                家政公司周点击排行</h1>
            @{
                Html.RenderAction(ActionConst.BYCLICK, ControllerConst.CORPORATION); @*周点击排行榜*@
            }
        </div>
        <div class="found_jz">
            <h1>
                你在姆拉拉找过的家政公司</h1>
            @{
                Html.RenderAction(ActionConst.HISTORY, ControllerConst.CORPORATION); @*你在姆拉拉找过的家政公司*@
            }
        </div>
    </div>
</div>
@section scripts{
    @Scripts.Render("~/bundles/main/search")
}
